source /home/work_nfs8/xlgeng/new_workspace/.bashrc
dir=/home/work_nfs8/xlgeng/new_workspace/wenet_gxl_salmonn/examples/aishell/salmonn/exp/salmonn_v15/5_epoch_ICL_train
mkdir -p $dir
train_config=conf/train_salmonn_v15.yaml

test_data_dir3="/home/work_nfs15/xlgeng/data/scp_test"
test_set3="speechio_0 speechio_1 speechio_2 speechio_3 speechio_4 speechio_5 speechio_6 speechio_7 speechio_8 speechio_9 speechio_10 speechio_11 speechio_12 speechio_13 speechio_14 speechio_15 speechio_16 speechio_17 speechio_18 speechio_19 speechio_20 speechio_21 speechio_22 speechio_23 speechio_24 speechio_25 speechio_26"
test_set3="speechio_0 speechio_1 speechio_2 speechio_3 speechio_4 speechio_5 speechio_6 speechio_7 speechio_8 speechio_9 speechio_10 speechio_11 speechio_12 speechio_13 speechio_14 speechio_15 speechio_16"

decode_checkpoint_name="step_29988"
decode_checkpoint=$dir/"${decode_checkpoint_name}".pt
stage=5
stop_stage=5


echo "final checkpoint is $decode_checkpoint"
test_sets=$(echo "$test_sets" | sed 's/ /--/g')
test_sets1=$(echo "$test_sets1" | sed 's/ /--/g')
test_sets2=$(echo "$test_sets2" | sed 's/ /--/g')
test_sets3=$(echo "$test_sets3" | sed 's/ /--/g')
gxl_num="new_speech_test"

mode="first10"
decode_checkpoint_name="new_test_ICL_speechio_${mode}"
my_named_nohup $decode_checkpoint_name"0" ./recognize_common_icl_speechio.sh --gpu_id 0 --dir $dir --train_config "$train_config" --decode_checkpoint "$decode_checkpoint" --decode_checkpoint_name "$decode_checkpoint_name" --stage $stage --stop_stage $stop_stage --test_data_dir "$test_data_dir3"  --test_sets "$test_sets3" --mode ${mode}
mode="random10_1"
decode_checkpoint_name="new_test_ICL_speechio_${mode}"
my_named_nohup $decode_checkpoint_name"1" ./recognize_common_icl_speechio.sh --gpu_id 1 --dir $dir --train_config "$train_config" --decode_checkpoint "$decode_checkpoint" --decode_checkpoint_name "$decode_checkpoint_name" --stage $stage --stop_stage $stop_stage --test_data_dir "$test_data_dir3"  --test_sets "$test_sets3" --mode ${mode}

mode="random10_2"
decode_checkpoint_name="new_test_ICL_speechio_${mode}"
my_named_nohup $decode_checkpoint_name"2" ./recognize_common_icl_speechio.sh --gpu_id 2 --dir $dir --train_config "$train_config" --decode_checkpoint "$decode_checkpoint" --decode_checkpoint_name "$decode_checkpoint_name" --stage $stage --stop_stage $stop_stage --test_data_dir "$test_data_dir3"  --test_sets "$test_sets3" --mode ${mode}


mode="first10"
decode_checkpoint_name="new_test_Common_speechio_${mode}"
my_named_nohup $decode_checkpoint_name"3" ./recognize_common_prompt_speechio.sh --gpu_id 3 --dir $dir --train_config "$train_config" --decode_checkpoint "$decode_checkpoint" --decode_checkpoint_name "$decode_checkpoint_name" --stage $stage --stop_stage $stop_stage --test_data_dir "$test_data_dir3"  --test_sets "$test_sets3" --mode ${mode}

mode="random10_1"
decode_checkpoint_name="new_test_Common_speechio_${mode}"
my_named_nohup $decode_checkpoint_name"4" ./recognize_common_prompt_speechio.sh --gpu_id 4 --dir $dir --train_config "$train_config" --decode_checkpoint "$decode_checkpoint" --decode_checkpoint_name "$decode_checkpoint_name" --stage $stage --stop_stage $stop_stage --test_data_dir "$test_data_dir3"  --test_sets "$test_sets3" --mode ${mode}

mode="random10_2"
decode_checkpoint_name="new_test_Common_speechio_${mode}"
my_named_nohup $decode_checkpoint_name"5" ./recognize_common_prompt_speechio.sh --gpu_id 5 --dir $dir --train_config "$train_config" --decode_checkpoint "$decode_checkpoint" --decode_checkpoint_name "$decode_checkpoint_name" --stage $stage --stop_stage $stop_stage --test_data_dir "$test_data_dir3"  --test_sets "$test_sets3" --mode ${mode}


echo "finish!"